POV-Ray : Newsgroups : povray.beta-test : Function context issue. : Re: Function context issue. Server Time
4 Nov 2024 21:22:30 EST (-0500)
  Re: Function context issue.  
From: Warp
Date: 21 Sep 2001 05:47:06
Message: <3bab0c9a@news.povray.org>
Batronyx <bat### [at] cadronhsacom> wrote:
: #declare Fn_AmbMap = function{ pigment{
:        pigment_pattern {bozo scale 0.5}
:                    color_map {
:         [0.00 color rgb <0,0,0> ]
:         [1.00 color rgb <1,1,1> ]
:       }
:    }
: }//end function

  Perhaps a bit unrelated, but I don't understand why it has to be that
complicated. Why not just:

#declare Fn_AmbMap = function { pattern { bozo scale .5 } }


-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.